
function getXMLRequest() {
	var xmlHttp = false;
	try {
		xmlHttp = new ActiveXObject('Msxml2.XMLHTTP');
	} catch (e) {
		try {
			xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
		} catch (e2) {
			xmlHttp = false;
		}
	}
	if(!xmlHttp && typeof XMLHttpRequest != 'undefined') {
		xmlHttp = new XMLHttpRequest();
	}
	return xmlHttp;
}

function emptyNode(parent) {
	var childs = parent.childNodes;
	for (var i = childs.length - 1; i >= 0; i--) {
    	parent.removeChild(childs[i]);
	}
}
